<template>
  <div class="home-container">
    <div class="hero-section">
      <h1>欢迎来到房屋出租商城</h1>
      <p>找到您理想的住所</p>
      <div class="cta-buttons">
        <router-link to="/user" class="cta-button primary">
          浏览房源
        </router-link>
        <router-link to="/admin" class="cta-button secondary">
          管理后台
        </router-link>
      </div>
    </div>
    
    <div class="features-section">
      <div class="feature">
        <i class="fas fa-search fa-2x"></i>
        <h3>快速搜索</h3>
        <p>根据您的需求快速找到合适的房源</p>
      </div>
      <div class="feature">
        <i class="fas fa-shield-alt fa-2x"></i>
        <h3>安全保障</h3>
        <p>所有房源都经过严格审核，确保安全可靠</p>
      </div>
      <div class="feature">
        <i class="fas fa-comments fa-2x"></i>
        <h3>便捷沟通</h3>
        <p>直接与房东沟通，快速解决问题</p>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Home'
}
</script>

<style scoped>
.home-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.hero-section {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 10px;
  margin-bottom: 40px;
}

.hero-section h1 {
  font-size: 3rem;
  margin-bottom: 15px;
}

.hero-section p {
  font-size: 1.5rem;
  margin-bottom: 30px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.cta-button {
  padding: 15px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.primary {
  background-color: #42b983;
  color: white;
}

.primary:hover {
  background-color: #359c6d;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.secondary {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.secondary:hover {
  background-color: rgba(255,255,255,0.1);
  transform: translateY(-3px);
}

.features-section {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 50px;
}

.feature {
  flex: 1;
  min-width: 250px;
  text-align: center;
  padding: 30px;
  border-radius: 10px;
  background-color: #f8f9fa;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.feature i {
  color: #42b983;
  margin-bottom: 20px;
}

.feature h3 {
  margin-bottom: 15px;
  color: #2c3e50;
}

.feature p {
  color: #7f8c8d;
}

@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-section p {
    font-size: 1.2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .features-section {
    flex-direction: column;
    align-items: center;
  }
}
</style>